<template>
  <div class="app-container">
    <TableReader ref="tablereader" @selectDataSource="showDataSource" :reader="reader" :readidList="readidList" />
  </div>
</template>

<script>
import TableReader from './reader/tableReader.vue'
export default {
  name: 'Reader',
  props:['reader','readidList'],
  components: { TableReader },
  data() {
    return {
      dataSource: ''
    }
  },
  methods: {
    getData() {
      return this.$refs.tablereader.getData()
    },
    showDataSource(data) {
      this.dataSource = data
      this.getData()
    },
    rest(){
      this.$refs.tablereader.rest()
    },
    getHistory(){
      this.$refs.tablereader.getHistory()
    }
  }
}
</script>
